package org.six11.olive3.picturephone;

import java.net.MalformedURLException;
import java.net.URL;

import org.six11.olive3.client.OliveDrawingSurface;
import org.six11.olive3.client.OliveState;
import org.six11.olive3.net.OliveNetworkTransmitter;
import org.six11.util2.Debug;
import org.six11.util2.gui.ApplicationFrame;
import java.text.DateFormat;
import java.util.Date;

/**
 * 
 * 
 * @author Gabe Johnson <johnsogg@cmu.edu>
 */
public class Picturephone {

  public static void main(String[] args) {
    System.out
        .println("Sorry, I am broken for the moment. The applet is the way to use this right now.");
    // Debug.useColor = false;
    // OliveState state;
    // OliveNetworkTransmitter xmit;
    // ApplicationFrame frame;
    // String urlString = "http://localhost:8080/picturephone/pp";
    // if (args.length > 0) {
    // urlString = args[0];
    // }
    // try {
    // state = new OliveState();
    // xmit = new OliveNetworkTransmitter(state, new URL(urlString));
    // xmit.addToMessage("login ()", "");
    // PicturephoneUI ui = new PicturephoneUI(xmit, state);
    //
    // frame = new ApplicationFrame("Picturephone "
    // + DateFormat.getDateInstance(DateFormat.SHORT).format(new Date()));
    // frame.add(ui);
    // frame.setSize(700, 500);
    // frame.center();
    // frame.setVisible(true);
    // } catch (MalformedURLException ex) {
    // ex.printStackTrace();
    // }
  }

}
